package com.han.hotelplat.pojo.hotelmanager;

import java.util.Date;
import java.util.List;

import com.han.hotelplat.pojo.hhm.HotelHmanager;
import com.han.hotelplat.pojo.hotel.Hotel;
import com.han.hotelplat.pojo.hotelroom.HotelRoom;

/**
 * Hotelmanager entity. @author MyEclipse Persistence Tools
 */

public class Hotelmanager implements java.io.Serializable {

	/**
	 * `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `userid` bigint(20) DEFAULT NULL COMMENT '用户id',
  `username` varchar(32) DEFAULT NULL COMMENT '如果是通过手机号注册的则填入手机号,如果是通过第三方账号登陆的则填充第三方账号标识',
  `password` varchar(32) DEFAULT NULL COMMENT '密码。通过第三方账号登陆的该值为null',
  `realname` varchar(63) DEFAULT NULL COMMENT '姓名',
  `sex` int(11) DEFAULT NULL COMMENT '性别0.男，1.女，2.未知',
  `idcard` varchar(20) DEFAULT NULL COMMENT '身份证号码',
  `introduceriname` varchar(63) DEFAULT NULL COMMENT '推荐人姓名',
  `introduceritel` varchar(20) DEFAULT NULL COMMENT '推荐人手机号',
  `tel` varchar(20) DEFAULT NULL COMMENT '手机号',
  `wx` varchar(63) DEFAULT NULL,
  `qq` varchar(31) DEFAULT NULL COMMENT 'qq号',
  `address` varchar(255) DEFAULT NULL COMMENT '住址',
  `facepic` varchar(255) DEFAULT NULL COMMENT '身份证正面照',
  `backpic` varchar(255) DEFAULT NULL COMMENT '身份证背面照',
  `hotelid` int(11) DEFAULT NULL COMMENT '酒店id',
  `state` int(11) DEFAULT NULL COMMENT '状态1待审核，2审核通过，3审核不通过，4冻结',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `creattime` datetime DEFAULT NULL COMMENT '创建时间',
  `lastlogintime` datetime DEFAULT NULL COMMENT '最后一次登录时间',
  PRIMARY KEY (`id`)
	 */
	// Fields

	private Integer id;
	private String userid;
	private String username;
	private String password;
	private String realname;
	private Integer sex;
	private String idcard;
	private String introduceriname;
	private String introduceritel;
	private String tel;
	private String wx;
	private String qq;
	private String address;
	private String facepic;//本来想用来存储身份证正面照的后面修改为存储管家的头像
	private String backpic;
	private Integer hotelid;
	private Integer state;
	private String remark;
	private Date creattime;
	private Date lastlogintime;
	private Integer position;//职位
	private String pushkey;//推送用
	private Integer clientype;//客户端类型1IOS，2android
	
	private String token;
	private Hotel hotel;
	private Hotelmanager hotelmanager;
	// Constructors
	private String hotelname;
	private String stringUid;
	
	private Integer hotelCount;//绑定酒店的数量
	private Integer isBindHote;//是否绑定了指定的酒店
	
	
	private List<HotelHmanager> hotelList;//管家已经绑定的酒店
	
	public String getHotelname() {
		return hotelname;
	}

	public void setHotelname(String hotelname) {
		this.hotelname = hotelname;
	}

	/** default constructor */
	public Hotelmanager() {
	}

	/** full constructor */
	public Hotelmanager(String userid, String username, String password,
			String realname, Integer sex, String idcard,
			String introduceriname, String introduceritel, String tel,
			String wx, String qq, String address, String facepic,
			String backpic, Integer hotelid, Integer state, String remark,
			Date creattime, Date lastlogintime, Integer position,
			String pushkey, Integer clientype) {
		this.userid = userid;
		this.username = username;
		this.password = password;
		this.realname = realname;
		this.sex = sex;
		this.idcard = idcard;
		this.introduceriname = introduceriname;
		this.introduceritel = introduceritel;
		this.tel = tel;
		this.wx = wx;
		this.qq = qq;
		this.address = address;
		this.facepic = facepic;
		this.backpic = backpic;
		this.hotelid = hotelid;
		this.state = state;
		this.remark = remark;
		this.creattime = creattime;
		this.lastlogintime = lastlogintime;
		this.position = position;//职位
		this.pushkey = pushkey;
		this.clientype = clientype;
	}
	
	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getIdcard() {
		return this.idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getIntroduceriname() {
		return this.introduceriname;
	}

	public void setIntroduceriname(String introduceriname) {
		this.introduceriname = introduceriname;
	}

	public String getIntroduceritel() {
		return this.introduceritel;
	}

	public void setIntroduceritel(String introduceritel) {
		this.introduceritel = introduceritel;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getWx() {
		return this.wx;
	}

	public void setWx(String wx) {
		this.wx = wx;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getFacepic() {
		return this.facepic;
	}

	public void setFacepic(String facepic) {
		this.facepic = facepic;
	}

	public String getBackpic() {
		return this.backpic;
	}

	public void setBackpic(String backpic) {
		this.backpic = backpic;
	}

	public Integer getHotelid() {
		return this.hotelid;
	}

	public void setHotelid(Integer hotelid) {
		this.hotelid = hotelid;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreattime() {
		return this.creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public Date getLastlogintime() {
		return this.lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Hotel getHotel() {
		return hotel;
	}

	public void setHotel(Hotel hotel) {
		this.hotel = hotel;
	}
	
	public Integer getPosition() {
		return position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}

	public String getStringUid() {
		return userid.toString();
	}

	public void setStringUid(String stringUid) {
		this.stringUid = stringUid;
	}

	public Hotelmanager getHotelmanager() {
		return hotelmanager;
	}

	public void setHotelmanager(Hotelmanager hotelmanager) {
		this.hotelmanager = hotelmanager;
	}

	public String getPushkey() {
		return pushkey;
	}

	public void setPushkey(String pushkey) {
		this.pushkey = pushkey;
	}

	public Integer getClientype() {
		return clientype;
	}

	public void setClientype(Integer clientype) {
		this.clientype = clientype;
	}

	public Integer getIsBindHote() {
		return isBindHote;
	}

	public void setIsBindHote(Integer isBindHote) {
		this.isBindHote = isBindHote;
	}

	public Integer getHotelCount() {
		return hotelCount;
	}

	public void setHotelCount(Integer hotelCount) {
		this.hotelCount = hotelCount;
	}

	public List<HotelHmanager> getHotelList() {
		return hotelList;
	}

	public void setHotelList(List<HotelHmanager> hotelList) {
		this.hotelList = hotelList;
	}
}